package com.classroommanagesystem.exception;

// 自定义业务异常
public class BusinessException extends RuntimeException {
    private Integer code;

    // 构造方法
    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    // getter/setter
    public Integer getCode() {
        return code;
    }
}